<template>
    <div>
        <search @search="searchClick" @query="query"></search>
    </div>
</template>

<script>
import Search from 'base/search/search'
export default {
    date(){
        return {
            query:''
        }
    },
    methods:{
        searchClick(){
            console.log('点击搜索')
        },
        query(query){
            this.query=query;
        }
    },
    components:{
        Search
    }
}
</script>

<style scoped lang="stylus" rel="stylesheet/stylus">
@import '~common/stylus/variable';

</style>
